package com.zyl.service.Impl;

import com.zyl.Mapper.UpdateMapper;
import com.zyl.pojo.Update;
import com.zyl.service.UpdateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Zyl
 * @Param:
 * @return:
 * @Description:
 */
@Service
public class UpdateServiceImpl implements UpdateService {
    @Autowired
    private UpdateMapper updateMapper;
    @Override
    public List<Update> findAll() {
        return updateMapper.findAll();
    }

    @Override
    public void deleteUpdateById(Integer id) {
        updateMapper.deleteUpdateById(id);
    }

    @Override
    public void addUpdate(Update update) {
        updateMapper.addUpdate(update);
    }
}
